home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="EUC-KR" ?>
- <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
- <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
- <!-- English Revision: 1.8.2.4 -->
-
- <!--
- Copyright 2003-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
- <modulesynopsis metafile="mod_cgi.xml.meta">
-
- <name>mod_cgi</name>
- <description>CGI ╜║┼⌐╕│╞« ╜╟╟α</description>
- <status>Base</status>
- <sourcefile>mod_cgi.c</sourcefile>
- <identifier>cgi_module</identifier>
-
- <summary>
- <!-- XXX: Should mention Options ExecCGI
- is the link to howto/cgi not sufficient? -nd
- -->
-
- <p>╝¡╣÷┤┬ mime type└╠ <code>application/x-httpd-cgi</code>└╠░┼│¬
- (╛╞╞──í 1.1 └╠╚─) ╟┌╡Θ╖»░í <code>cgi-script</code>└╬ ╕≡╡τ
- ╞─└╧└╗ CGI ╜║┼⌐╕│╞«╖╬ └╬╜─╟╧┐⌐, ╜╟╟α╟╧░φ, ▒╫ ░ß░·╕ª ┼¼╢≤└╠╛≡╞«┐í░╘
- ║╕│╜┤┘. ╞─└╧└╠ <directive module="mod_mime">AddType</directive>
- ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ╚«└σ└┌╕ª ░í┴÷░┼│¬, <directive
- module="mod_alias">ScriptAlias</directive> ╡≡╖║┼Σ╕« ╛╚┐í
- └╓└╕╕Θ CGI╖╬ ├│╕«╡╚┤┘.</p>
-
- <p>╝¡╣÷┤┬ CGI ╜║┼⌐╕│╞«╕ª ║╬╕ª╢º <code>DOCUMENT_ROOT</code>╢≤┤┬
- ╚»░µ║»╝÷╕ª ├▀░í╟╤┤┘. └╠ ║»╝÷┤┬ <directive
- module="core">DocumentRoot</directive> ╝│┴ñ░¬└╗ ░í┴°┤┘.</p>
-
- <p>╛╞╞──í┐í╝¡ CGI ╜║┼⌐╕│╞«╕ª ╗τ┐δ╟╧┤┬ ╣µ╣²┐í ┤δ╟╤ ╝╥░│┤┬
- <a href="../howto/cgi.html">CGI╖╬ ╡┐└√ ╞Σ└╠┴÷ ╗²╝║</a> ┼⌡┼Σ╕«╛≤└╗
- ┬ⁿ░φ╟╧╢≤.</p>
-
- <p>└»┤╨╜║┐í╝¡ ┤┘┴▀╛▓╖╣╡σ MPM└╗ ╗τ┐δ╟╤┤┘╕Θ └╠ ╕≡╡Γ┤δ╜┼
- <module>mod_cgid</module> ╕≡╡Γ└╗ ╗τ┐δ╟╪╛▀ ╟╤┤┘. ╗τ┐δ└┌
- └╘└σ┐í╝¡ └╠ ╡╬ ╕≡╡Γ└║ ▒Γ║╗└√└╕╖╬ ╡┐└╧╟╧┤┘.</p>
- </summary>
-
- <seealso><directive module="core">AcceptPathInfo</directive></seealso>
- <seealso><directive module="core">Options</directive></seealso>
- <seealso><directive module="mod_alias">ScriptAlias</directive></seealso>
- <seealso><directive module="mod_mime">AddHandler</directive></seealso>
- <seealso><a href="../suexec.html">┤┘╕Ñ ╗τ┐δ└┌ ID╖╬ CGI ╟┴╖╬▒╫╖Ñ
- ╜╟╟α╟╧▒Γ</a></seealso>
- <seealso><a href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ╟Ñ┴╪</a></seealso>
-
- <section id="env"><title>CGI ╚»░µ║»╝÷</title>
- <p>╝¡╣÷┤┬ ┤┘└╜░· ░░└║ ╣µ╣²└╕╖╬ <a
- href="http://hoohoo.ncsa.uiuc.edu/cgi/">CGI ╟Ñ┴╪</a>└╠ ╝│╕φ╟╧┤┬
- CGI ╚»░µ║»╝÷╕ª ╝│┴ñ╟╤┤┘:</p>
-
- <dl>
- <dt>PATH_INFO</dt>
-
- <dd>└╠ ║»╝÷┤┬ <directive module="core"
- >AcceptPathInfo</directive> ┴÷╜├╛ε╕ª ┴≈┴ó <code>off</code>╖╬
- ┴÷┴ñ╟╤ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘. <directive
- >AcceptPathInfo</directive>░í ╛°┤┬ ░µ┐∞ ╝¡╣÷┤┬ ▒Γ║╗└√└╕╖╬
- ░µ╖╬ ┴ñ║╕░í └╓┤┬ ┐Σ├╗┐í ┤δ╟╪ 404 NOT FOUND ┐└╖∙╕ª │╗┴÷╕╕,
- <module>mod_cgi</module>┤┬ ░µ╖╬ ┴ñ║╕╕ª (URI┐í╝¡ ╜║┼⌐╕│╞«
- ╞─└╧╕φ ╡┌┐í │¬┐└┤┬ <code>/more/path/info</code>) ╣▐┤┬┤┘.
- <directive>AcceptPathInfo</directive> ┴÷╜├╛ε╕ª ╗²╖½╟╧╕Θ
- <module>mod_cgi</module> ┐Σ├╗┐í ┤δ╟╪╝¡ <directive
- module="core">AcceptPathInfo</directive>╕ª <code>On</code>└╕╖╬
- ╝│┴ñ╟╤ ░═░· ░░┤┘.</dd>
-
- <dt>REMOTE_HOST</dt>
-
- <dd>└╠ ║»╝÷┤┬ <directive module="core"
- >HostnameLookups</directive>░í <code>on</code>└╠░φ (▒Γ║╗░¬└║
- off), ┴ó╝╙╟╤ ╚ú╜║╞« ┴╓╝╥╕ª ┐¬DNS ░╦╗÷╟╧┐⌐ ╜╟┴ª ╚ú╜║╞«╕φ└╗
- ├ú└║ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.</dd>
-
- <dt>REMOTE_IDENT</dt>
-
- <dd>└╠ ║»╝÷┤┬ <directive module="core"
- >IdentityCheck</directive>░í <code>on</code>└╠░φ, ┴ó╝╙╟╤
- ╚ú╜║╞«░í ident ╟┴╖╬┼Σ─▌└╗ ┴÷┐°╟╧┤┬ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.
- ╜▒░╘ └╠ ░¬└╗ ╝╙└╧ ╝÷ └╓▒Γ╢º╣«┐í └╠ ║»╝÷└╟ │╗┐δ└╗ ╣╧└╕╕Θ
- ╛╚╡╟░φ, ┼¼╢≤└╠╛≡╞«┐═ ╝¡╣÷ ╗τ└╠┐í ╟┴╖╧╜├░í └╓┤┘╕Θ ║»╝÷
- │╗┐δ└╠ ┐╧└ⁿ╚≈ ╣½└╟╣╠╟╘└╗ ┴╓└╟╟╧╢≤.</dd>
-
- <dt>REMOTE_USER</dt>
-
- <dd>CGI ╜║┼⌐╕│╞«░í └╬┴⌡└╗ ░┼├─╛▀╟╧┤┬ ░µ┐∞┐í╕╕ ╝│┴ñ╟╤┤┘.</dd>
- </dl>
- </section>
-
- <section id="cgi-debug"><title>CGI ╡≡╣÷▒δ</title>
- <p>╛ε╡≡┐í╝¡ └▀╕° ╜╟╟α╡╟┤┬┴÷ ╜║┼⌐╕│╞«└╟ ├Γ╖┬└╗ (╟Ñ┴╪├Γ╖┬░·
- ╟Ñ┴╪┐└╖∙) ║╝ ╝÷ ╛°▒Γ╢º╣«┐í CGI ╜║┼⌐╕│╞«┤┬ └ⁿ┼δ└√└╕╖╬ ╡≡╣÷▒δ╟╧▒Γ
- ╛ε╖┴┐ⁿ┤┘. ╛╞╞──í 1.2 └╠╚─┐í ├▀░í╡╚ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧╕Θ ╣▀╗²╟╤
- ┐└╖∙╕ª └┌╝╝╚≈ ╖╬▒╫┐í │▓▒µ ╝÷ └╓┤┘.</p>
-
- <section><title>CGI ╖╬▒╫╞─└╧ ╟ⁿ╜─</title>
- <p>CGI ┐└╖∙╖╬▒╫┤┬ ┴ñ╗≤└√└╕╖╬ ╜╟╟α╟╧┴÷ ╕°╟╤ CGI╕ª ▒Γ╖╧╟╤┤┘.
- ┐└╖∙░í ╣▀╗²╟╤ CGI ╜║┼⌐╕│╞«┤┬ ╖╬▒╫┐í ┐⌐╖» ┴┘└╟ ┴ñ║╕╕ª │▓▒Σ┤┘.
- ├╣╣°┬░ ╡╬ ┴┘└║ ╟╫╗≤ ╛╞╖í┐═ ░░└║ ╟ⁿ╜─└╠┤┘:</p>
-
- <example>
- %% [<var>╜├░ú</var>] <var>┐Σ├╗┴┘</var><br />
- %% <var>HTTP-╗≤┼┬</var> <var>CGI-╜║┼⌐╕│╞«-╞─└╧╕φ</var>
- </example>
-
- <p>CGI ╜║┼⌐╕│╞«╕ª ╜╟╟α╟╥ ╝÷ ╛°┤┬ ┐└╖∙└╬ ░µ┐∞ ╖╬▒╫╞─└╧┐í
- ├▀░í╖╬ ╡╬ ┴┘└╗ ┤⌡ ▒Γ╖╧╟╤┤┘:</p>
-
- <example>
- %%error<br />
- <var>┐└╖∙╣«</var>
- </example>
-
- <p>╜║┼⌐╕│╞«░í (║╕┼δ ╜║┼⌐╕│╞«└╟ ╣÷▒╫╢º╣«┐í) └▀╕°╡╚ ╟∞┤⌡
- ┴ñ║╕╕ª ╣▌╚»╟╧┤┬ ░µ┐∞, ┤┘└╜ │╗┐δ└╗ ╖╬▒╫┐í ▒Γ╖╧╟╤┤┘:</p>
-
- <example>
- %request<br />
- <var>╣▐└║ ╕≡╡τ HTTP ╟∞┤⌡</var><br />
- <var>(└╓┤┘╕Θ) POST│¬ PUT │╗┐δ</var><br />
- %response<br />
- <var>CGI ╜║┼⌐╕│╞« ├Γ╖┬└╟ ╕≡╡τ ╟∞┤⌡</var><br />
- %stdout<br />
- <var>CGI ╟Ñ┴╪├Γ╖┬</var><br />
- %stderr<br />
- <var>CGI ╟Ñ┴╪┐└╖∙</var><br />
- </example>
-
- <p>(╜║┼⌐╕│╞«░í ╟Ñ┴╪├Γ╖┬└╠│¬ ╟Ñ┴╪┐└╖∙┐í ╛╞╣½ │╗┐δ╡╡ ├Γ╖┬╟╧┴÷
- ╛╩╛╥┤┘╕Θ %stdout░· %stderr ║╬║╨└║ ╗²╖½╡╔ ╝÷ └╓┤┘).</p>
- </section>
- </section>
-
- <directivesynopsis>
- <name>ScriptLog</name>
- <description>CGI ╜║┼⌐╕│╞« ┐└╖∙╖╬▒╫╞─└╧└╟ └º─í</description>
- <syntax>ScriptLog <var>file-path</var></syntax>
- <contextlist><context>server config</context>
- <context>virtual host</context></contextlist>
- <modulelist><module>mod_cgi</module><module>mod_cgid</module>
- </modulelist>
-
- <usage>
- <p><directive>ScriptLog</directive> ┴÷╜├╛ε┤┬ CGI ╜║┼⌐╕│╞«
- ┐└╖∙╖╬▒╫╞─└╧└╗ ┴÷┴ñ╟╤┤┘. <directive>ScriptLog</directive>╕ª
- ╗τ┐δ╟╧┴÷╛╩└╕╕Θ ┐└╖∙╖╬▒╫╕ª ╕╕╡Θ┴÷ ╛╩┤┬┤┘. ╗τ┐δ╟╧╕Θ ╛╞▒╘╕╒╞«╖╬
- ┴÷┴ñ╟╤ ╞─└╧┐í CGI ┐└╖∙╕ª ▒Γ╖╧╟╤┤┘. ╗≤┤δ░µ╖╬╕ª ┴÷┴ñ╟╧╕Θ
- <directive module="core">ServerRoot</directive>┐í ╗≤┤δ░µ╖╬╖╬
- ╣▐╛╞╡Θ└╬┤┘.
- </p>
-
- <example><title>┐╣┴ª</title>
- ScriptLog logs/cgi_log
- </example>
-
- <p>└┌╜─ ╟┴╖╬╝╝╜║╕ª ╜╟╟α╟╧┤┬ ╗τ┐δ└┌, <em>┴∩</em> <directive
- module="mpm_common">User</directive> ┴÷╜├╛ε╖╬ ┴÷┴ñ╟╤ ╗τ┐δ└┌
- ▒╟╟╤└╕╖╬ ╖╬▒╫╕ª ┐¼┤┘. ▒╫╖í╝¡ ▒╫ ╗τ┐δ└┌░í ╜║┼⌐╕│╞« ╖╬▒╫░í
- └╓┤┬ ╡≡╖║┼Σ╕«┐í ╛▓▒Γ▒╟╟╤└╠ └╓┤°┴÷, ┴≈┴ó ╣╠╕« ╞─└╧└╗ ╕╕╡Θ╛ε╝¡
- ▒╫ ╗τ┐δ└┌┐í░╘ ╛▓▒Γ▒╟╟╤└╗ ┴α╛▀ ╟╤┤┘. ╜║┼⌐╕│╞« ╖╬▒╫╕ª ┴╓ ╖╬▒╫
- ╡≡╖║┼Σ╕«┐í ╡╨┤┘╕Θ └┌╜─ ╟┴╖╬╝╝╜║╕ª ╜╟╟α╟╧┤┬ ╗τ┐δ└┌┐í░╘ ╛▓▒Γ▒╟╟╤└╗
- ┴╓▒Γ└º╟╪ ╡≡╖║┼Σ╕« ▒╟╟╤└╗ ║»░µ╟╧┴÷ <strong>╕╢╢≤</strong>.</p>
-
- <p>╜║┼⌐╕│╞« ╖╬▒╫┤┬ CGI ╜║┼⌐╕│╞«╕ª └█╝║╟╥╢º ╡≡╣÷▒δ└╗ └º╟╤
- ┐δ╡╡└╠┴÷ ╝¡╣÷╕ª ╜╟╟α╟╧┤┬ ╡┐╛╚ ░Φ╝╙ ╗τ┐δ╟╧▒Γ└º╟╘└╠ ╛╞┤╘└╗
- ┴╓└╟╟╧╢≤. ╝╙╡╡┐═ ╚┐└▓╝║╕Θ┐í╝¡ ├╓└√╚¡░í ╛╚╡╟└╓░φ, ╝│░Φ╟╤
- ╕±└√└╠┐▄└╟ ╣µ╣²└╕╖╬ ╗τ┐δ╟╧╕Θ ║╕╛╚╗≤ ╣«┴ª░í ╡╔ ╝÷ └╓┤┘.</p>
- </usage>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>ScriptLogLength</name>
- <description>CGI ╜║┼⌐╕│╞« ╖╬▒╫╞─└╧└╟ ┼⌐▒Γ ┴ª╟╤</description>
- <syntax>ScriptLogLength <var>bytes</var></syntax>
- <default>ScriptLogLength 10385760</default>
- <contextlist><context>server config</context>
- <context>virtual host</context></contextlist>
- <modulelist><module>mod_cgi</module><module>mod_cgid</module>
- </modulelist>
-
- <usage>
- <p><directive>ScriptLogLength</directive>┤┬ CGI ╜║┼⌐╕│╞«
- ╖╬▒╫╞─└╧└╟ ┼⌐▒Γ╕ª ┴ª╟╤╟╤┤┘. CGI ┐└╖∙░í ╣▀╗²╟╥╢º╕╢┤┘ (╕≡╡τ
- ┐Σ├╗ ╟∞┤⌡, ╕≡╡τ ╜║┼⌐╕│╞« ├Γ╖┬ ╡ε) ╕╣└║ ┴ñ║╕░í ╖╬▒╫┐í
- ▒Γ╖╧╡╟▒Γ╢º╣«┐í ╞─└╧└╠ ╕┼┐∞ ─┐┴· ╝÷ └╓┤┘. ╞─└╧└╠ ╣½╟╤╚≈ ─┐┴÷┤┬
- ╣«┴ª╕ª ╕╖▒Γ└º╟╪ └╠ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ CGI ╖╬▒╫╞─└╧└╟ ├╓┤δ
- ╞─└╧┼⌐▒Γ╕ª ╝│┴ñ╟╤┤┘. ╞─└╧└╟ ┼⌐▒Γ░í ╝│┴ñ╟╤ ░¬└╗ │╤└╕╕Θ ┤⌡
- └╠╗≤ ┴ñ║╕╕ª ▒Γ╖╧╟╧┴÷╛╩┤┬┤┘.</p>
- </usage>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>ScriptLogBuffer</name>
- <description>╜║┼⌐╕│╞« ╖╬▒╫┐í ▒Γ╖╧╟╥ PUT ╚ñ└║ POST ┐Σ├╗└╟ ├╓┤δ╖«</description>
- <syntax>ScriptLogBuffer <var>bytes</var></syntax>
- <default>ScriptLogBuffer 1024</default>
- <contextlist><context>server config</context>
- <context>virtual host</context></contextlist>
- <modulelist><module>mod_cgi</module><module>mod_cgid</module>
- </modulelist>
-
- <usage>
- <p>┼½ │╗┐δ└╗ ╣▐╛╞╝¡ ╖╬▒╫╞─└╧└╠ │╩╣½ ╗í╕« ─┐┴÷┤┬ ╟÷╗≤└╗ ╕╖▒Γ└º╟╪
- ╞─└╧┐í ▒Γ╖╧╟╥ PUT ╚ñ└║ POST │╗┐δ└╟ ┼⌐▒Γ╕ª ┴ª╟╤╟╤┤┘. ▒Γ║╗└√└╕╖╬
- 1024 ╣┘└╠╞«▒ε┴÷ ╖╬▒╫┐í ▒Γ╖╧╟╧┴÷╕╕, └╠ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐
- ╝÷┴ñ╟╥ ╝÷ └╓┤┘.</p>
- </usage>
- </directivesynopsis>
-
- </modulesynopsis>
-